﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
			 xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
			 xmlns:olg="clr-namespace:OpenLightGroup.Common.Interactivity;assembly=OpenLightGroup.Common.Interactivity"
			 xmlns:Examples_ViewModels="clr-namespace:Examples.ViewModels"
			 x:Class="Examples.Controls.RadioButtonList"
			 mc:Ignorable="d"
			 d:DesignHeight="229"
			 d:DesignWidth="402">
	<UserControl.Resources>
		<DataTemplate x:Key="RadioButtonDataTemplate">
			<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
				<RadioButton x:Name="radioButton" Content="" d:LayoutOverrides="Height"/>
				<TextBlock x:Name="textBlock" Margin="5,0,0,0" TextWrapping="Wrap" Text="{Binding Name}" d:LayoutOverrides="Height"/>
			</StackPanel>
		</DataTemplate>
	</UserControl.Resources>


	<Grid x:Name="LayoutRoot">

		<Grid.DataContext>
			<Examples_ViewModels:ToggleButtonListBoxViewModel/>
		</Grid.DataContext>
		<ListBox x:Name="listBox" ItemsSource="{Binding Items}" ItemTemplate="{StaticResource RadioButtonDataTemplate}">
			<i:Interaction.Behaviors>
				<olg:ToggleButtonListBoxBehavior/>
			</i:Interaction.Behaviors>
		</ListBox>

	</Grid>
</UserControl>
